import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import cloud from '@/cloud/cloud.js' // 引入uniCloud配置

Vue.config.productionTip = false
Vue.prototype.$cloud = cloud
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import cloud from '@/cloud/cloud.js'

export function createApp() {
  const app = createSSRApp(App)
  
  // Vue3方式挂载uniCloud（已移除微信云初始化）
  app.config.globalProperties.$cloud = cloud
  
  return {
    app
  }
}
// #endif